# Contributor: yaroslav <proninyaroslav@mail.ru>
# Contributor: Askhat Bakarov <sirocco{at}ngs{dot}ru>
# Maintainer: Sagar Acharya <sagar@hyperbola.info>

pkgname=android-file-transfer
pkgver=4.2
pkgrel=1
pkgdesc='Android MTP client with minimalistic UI'
arch=('i686' 'x86_64')
url='https://whoozle.github.io/android-file-transfer-linux'
license=('LGPL-2.1')
depends=('qt-base' 'fuse2' 'libxkbcommon-x11' 'hicolor-icon-theme' 'file')
makedepends=('cmake' 'qt-tools')
source=("${pkgname}-linux-${pkgver}.tar.gz::https://github.com/whoozle/android-file-transfer-linux/archive/refs/tags/v${pkgver}.tar.gz")
sha512sums=('88ee6bf0af6cf6b2f6b97dee8e79d20905d2a84c271d68d874b87ccc797f198f1e480565633feea08a585ebb55e77da9742bd9cd87b59d88e677c44c69e95659')

build() {
  cd ${pkgname}-linux-${pkgver}
  cmake -DCMAKE_INSTALL_PREFIX=/usr .
  make
}

package() {
  cd ${pkgname}-linux-${pkgver}
  make DESTDIR="$pkgdir/" install
  install -Dm644 LICENSE -t $pkgdir/usr/share/licenses/$pkgname
}
